package org.eclipse.gittab.fretboard.draw2d.figures;

import org.eclipse.draw2d.Label;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Font;

public class TextInfoFigure extends Label {

	public TextInfoFigure(String text, Color color, Font font) {

		super(text);
		if (font != null)
			setFont(font);

		setForegroundColor(color);

		setOpaque(true);
	}

	public int getHeight() {

		return getFont().getFontData()[0].getHeight();
	}
}
